<template>
  <view class="cm-label-text" :class="[cmClass, wrapperClass]"
    :style="[cmStyle]">
    <view class="cm-label-text-head" :style="[labelSize, labelStyle]" :class="[labelClass, labelExtraClass]">
      <text v-if="label && label !== ''">{{ label }}</text>
      <slot v-else name="label"></slot>
    </view>
    <view class="cm-label-text-content cm-flex-g-1" :style="[contentStyle]" :class="[contentClass, contentExtraClass]">
      <slot></slot>
    </view>
  </view>
</template>

<script src="./cm-label-text.js"></script>

<style lang="stylus">
@import './cm-label-text.styl'
</style>
